package com.its.test;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.List;

/**
 * @author 朱厚强
 * @version 1.0
 * @classname getRegion
 */
@SpringBootTest
public class getRegion {
    @Autowired
    private RedisTemplate redisTemplate;
    @Test
    public void t1(){
        List list = redisTemplate.opsForHash().values("region:3206");
        list.forEach(System.out::println);
    }
}
